<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-username" data-rule="required" class="form-control selectpicker" name="row[username]">
                {foreach name="usernamelist" item="vo"}
                <option value="{$vo.nickname}">{$vo.nickname}</option>
                {/foreach}
            </select>

            <!--            <input id="c-username" class="form-control" name="row[username]" type="text">-->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Datebetween')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <div class="layui-inline" id="test-range">
                        <div class="layui-input-inline">
                            <input type="text" id="startDate" autocomplete="off" class="layui-input" placeholder="开始日期">
                        </div>
                        <div class="layui-form-mid">-</div>
                        <div class="layui-input-inline">
                            <input type="text" id="endDate" autocomplete="off" class="layui-input" placeholder="结束日期">
                        </div>
                    </div>
                </div>
            </div>
            <input id="c-datebetween" class="form-control" name="row[datebetween]" type="hidden" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Campaign')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-campaign" class="form-control" name="row[campaign]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reveal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reveal" class="form-control" name="row[reveal]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Click')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-click" class="form-control" name="row[click]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Consume')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-consume" class="form-control" step="0.01" name="row[consume]" type="number">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
